Skip to main content

About

The MSI Server is a Linux server that is used for development and production. It is configured with Ubuntu 22.04.05 LTS.

Contents

Configuration and properties

  1. 32GB RAM
  2. 4TB storage (2TB data0) + (2TB Ubuntu)
  3. Ubuntu 22.04.05
  4. 12GB NVIDIA RTX 4070 GPU

Configuration

info

The MSI Server is configured differently for Windows and Ubuntu. Please refer the appropriate section for your use case.

Ubuntu

Connecting to the MSI server

Follow the instructions in the Use VSCode to SSH in Remote Systems | GQC Dev Documentation document

Development environment

GQC uses pytorch and fastai for building its neural networks and other ML models. The msi-server-ubuntu is configured with Mambaforge which uses conda as it's environment manager. The environment was setup from a lecture of Jeremy Howard.

::danger We don't use Mambaforge or conda anymore. Refer to virtualenvwrapper docs instead.

Various aliases are configured inside .bash_aliases so that dealing with conda commands becomes easy.

aliasdescription
calslist all available conda environments
cashorcut to activate a conda environment

Envs to use for different projects

projectenv-to-use
cctv-appspytorch
ai3-hackathonai3
nbs built for CCTV processingpytorch
any deep learning projectpytorch
gqc-utility-notebooksgqc_utility

Useful tips

Here are some simple bash functions that come in handy in a lot of cases

count "path-to-the-folder"        # To see the count of all unique file extensions in the current directory
du -sh "path-to-the-folder" # check size of the folder/file
loop 5 nvidia-smi # loop the command nvidia-smi every 5 seconds
loop1 nvidia-smi # loop the command nvidia-smi every 5 seconds
danger
  • Because multiple people can SSH into MSI and run multiple tasks at the same time, it can cause resource deadlock. Meaning, one process that was started before others is prone to use all the resources leading to other processes waiting for them in queue.
  • In order to avoid this scenario, we have created a Teams channel called MSI Runs. Here, we can check if anyone strated a job before us or if we are doing it, we need to update it in the channel.

Troubleshooting notes

  1. Cleaning up artifacts from mounted external drives

    1. The scenario is as following. The external drive mount directory, /media/gqc/, contains artifacts which are not needed. artifacts

    2. We clean them up by first unmounting the corresponding real drive for safety and finally mounting that back.

      sudo umount /media/gqc/T72
      sudo rm T7 T71
      sudo mount /dev/sda1 /media/gqc/T7
    3. Verify the disks by running df -h disk capacity